package com.xiaotao.mapper;

import com.xiaotao.entity.UserLike;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserLikeMapper {
    int insert(UserLike userLike);
    int deleteByUserIdAndPostId(@Param("userId") Integer userId, @Param("postId") Long postId);
    int countByUserIdAndPostId(@Param("userId") Integer userId, @Param("postId") Long postId);
    int deleteByPostId(Long postId);
}